package com.ustc.hewei.rpc.common.protocol;

/**
 * @author hewei
 * @version 1.0
 * @description: 通知的类型，是给服务端判断服务是否成功注册
 * @date 2022/8/17 19:40
 */

public enum NotifyType {
    SUCCESS(200, "SUCCESS"),
    FAIL(500, "FAIL"),
    UPDATE(1, "UPDATE"),
    REGISTER(2, "REGISTER");


    private int code;
    private String msg;

    NotifyType(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
